/**
 *
 * @Author:   tiannanyihao
 * @Date:     2019-06-11 14:21
 * @Profile:  index
 * @Project:  vue_004

 * @Description: 路由
 *
 */


import Vue from 'vue'
import VueRouter from 'vue-router'

import Shooping from '../components/Shopping'
import ChangeInfo from '../components/ChangeInfo'
import Home from '../components/Home'



Vue.use(VueRouter);

const router = new VueRouter({
    mode:'',
    routes:[
        {
            path:'/',
            component:Home,
        },
        {
            path:'/home',
            component:Home
        },
        {
            path:'/shopping',
            component:Shooping
        },
        {
            path:'/changeInfo',
            component:ChangeInfo
        }
    ]

})

export default router;